package link.ten_fei.service;

import link.ten_fei.Bean.Doc_User;
import link.ten_fei.dao.AddUserDao;
import link.ten_fei.dao.AddUserDaoImpl;

public class AddUserServiceImpl implements AddUserService{
	private AddUserDao addUserDao=new AddUserDaoImpl();
	@Override
	public Doc_User findByNameOrId(String doc_name,String doc_age,int id) {
		
		return addUserDao.findByNameOrId(doc_name,doc_age,id);
	}
	@Override
	public int save(Doc_User user) {
		return addUserDao.save(user);
	}
	@Override
	public int change(Doc_User user, int id) {
		return addUserDao.change(user,id);
	}

}
